package com.sinochem.yunlian.ship.common.util;

import com.google.common.base.Strings;
import com.sinochem.yunlian.ship.common.constant.ShipNavStatus;

/**
 * @author: chengyiping
 * @email: chengyiping@sinochem.com
 * @description:
 * @date: Created in 2018/5/23 19:25
 * @modified By :
 */
public class ShipNavUtil {

    public static int transforNavStatus(String navStatus) {
        int navTurnStatus = 0;
        if (!Strings.isNullOrEmpty(navStatus)) {
            if (navStatus.equals(ShipNavStatus.MB)) {
                navTurnStatus = 0;
            } else if (navStatus.equals(ShipNavStatus.WCZ)) {
                navTurnStatus = 0;
            } else if (navStatus.equals(ShipNavStatus.KB)) {
                navTurnStatus = 0;
            } else if (navStatus.equals(ShipNavStatus.GQ)) {
                navTurnStatus = 0;
            } else if (navStatus.equals(ShipNavStatus.ZHZJTD)) {
                navTurnStatus = 1;
            } else if (navStatus.equals(ShipNavStatus.YXCZX)) {
                navTurnStatus = 1;
            } else if (navStatus.equals(ShipNavStatus.JDCTHT)) {
                navTurnStatus = 1;
            } else if (navStatus.equals(ShipNavStatus.JDCTJ)) {
                navTurnStatus = 1;
            } else if (navStatus.equals(ShipNavStatus.ZPQY)) {
                navTurnStatus = 1;
            } else {
                navTurnStatus = 1;
            }
        } else {
            navTurnStatus = 0;
        }
        return navTurnStatus;
    }

}
